'use strict';

module.exports = app => {
  const { router, controller } =  app;
  const jwt = app.middleware.jwt( {secret: app.config.jwt.secret} );

  router.post('/api/auth/login', controller.auth.login);
  router.post('/api/auth/checkLogin', jwt, controller.auth.checkLogin);
}